﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;
using System.IO;
namespace Repository
{
    public class ConnectionFactory
    {
        
        public static SqlConnection getConnetcion()
        { 
           
            try
            {
                SqlConnection connection = new SqlConnection(@"Data Source=WILLIAMNIEDZWEI\SQLSERVER2008;Initial Catalog=ecommerce;Integrated Security=True");
                return connection;
            }
            catch (SqlException sqlex) 
            {
                return null;
            }
        }
    }
}
